<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<title>Scholar Aide</title>
</head>
<body>
	<jsp:include page="/includes/header.jsp" />
	<div id="wrapper">
		<div id="content">
			<%
				// Retrieve session variables.
				String user = (String) session.getAttribute("user");
				String redirect = "login.jsp";

				// Determine which page to display.
				if (user == null) {
					redirect = "login.jsp";
				} else {
					redirect = "dashboard.jsp";
				}

				response.sendRedirect(redirect);
			%>
		</div>
	</div>
	<jsp:include page="/includes/footer.jsp" />
</body>
</html>